package cn.com.api.service.impl.base;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiU_dynamic;

import cn.com.api.mapper.ApiU_dynamicMapper;

import cn.com.api.service.ApiU_dynamicService;

/**
 * 
 **/
@Service
public class U_dynamicServiceImplBase {
	@Autowired
	private ApiU_dynamicMapper apiU_dynamicMapper;
    
    // 根据id获取
	public ApiU_dynamic findU_dynamicById(Integer id){
		ApiU_dynamic u_dynamic = apiU_dynamicMapper.findU_dynamicById( id );
		return u_dynamic;
	}
    
    //查看数据集
	public List<ApiU_dynamic> findU_dynamics(){
        List<ApiU_dynamic> u_dynamics = apiU_dynamicMapper.findU_dynamics();
		return u_dynamics;
    }
   
//    //根据条件查看数据集
//	public List<Map<String, Object>> findU_dynamicsByMap(HashMap condition){
//        List<Map<String, Object>> u_dynamics = apiU_dynamicMapper.findU_dynamicsByMap(condition);
//		return u_dynamics;
//    }
    
	// 添加
	public int insertU_dynamic(ApiU_dynamic u_dynamic){
		int ret_I= apiU_dynamicMapper.insertU_dynamic(u_dynamic);
		return ret_I;
	}

	// 修改
	public int updateU_dynamic(ApiU_dynamic u_dynamic){
		int ret_I= apiU_dynamicMapper.updateU_dynamic(u_dynamic);
		return ret_I;
	}
	
    // 删除
	public int deleteU_dynamic(Integer id){
		int ret_I= apiU_dynamicMapper.deleteU_dynamic( id );
		return ret_I;
	}
	
    // Foreign keys revelant		
		

	//region Indexs revelant
    
    
    
    
}


